package cn.jsu.oj.dispatchServer.net;

import io.netty.channel.ChannelInitializer;
import io.netty.channel.socket.SocketChannel;

/**
 * @author ahtonc
 */
public class DispatchServerChannelInit extends ChannelInitializer<SocketChannel> {

    @Override
    protected void initChannel(SocketChannel socketChannel) throws Exception {
        socketChannel.pipeline()
                .addLast(new InBoundHandle())
                .addLast(new OutBoundHandle())
                .addLast(new DispatchServerHandle());
    }
}